package com.example.chatweb.service.impl;

import com.example.chatweb.entity.Topic;
import com.example.chatweb.mapper.TopicMapper;
import com.example.chatweb.service.TopicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class TopicServiceImpl implements TopicService {


    @Resource
    private TopicMapper topicMapper;

    @Override
    public void addtopic(Topic topic) {
        topicMapper.insert(topic);
    }
}
